﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows;

namespace ClientAppraise.Controls
{
    public class ZxListGridViewExHelper
    {
        static ZxListGridViewExHelper()
        {
            EventManager.RegisterClassHandler(typeof(ZxListGridView), ZxListGridView.SelectedEvent, new RoutedEventHandler(TreeView_SelectedItemChanged));
        }

        private static void TreeView_SelectedItemChanged(object sender, RoutedEventArgs e)
        {
            e.Handled = true;
            if (sender is not TreeView treeView) return;

            if (e is not RoutedPropertyChangedEventArgs<object> ee) return;

          //  SetSelectedItem(treeView, ee.NewValue);
        }
    }
}
